package com.wzh.houseEs.feign;

import com.wzh.common.utils.R;
import com.wzh.houseEs.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ShuangyeZhao
 * @date 2022/3/29
 */
@FeignClient(name = "user")
public interface UserFeign {
    @RequestMapping("/user/houseuser/info/{userId}")
    R info(@PathVariable("userId") Long userId);

    @RequestMapping("/user/houseuser/update")
    R update(@RequestBody UserVo userVo);
}
